package com.janko.springbootbase.designmode.proxy;

/**
 * @Author nyk
 * @Date 2021/6/9 13:47
 * @Version 1.0
 * @Desc 定义一个代理类，默认是潘金莲
 */
public class ProxyWangPo implements KindWomen{

    private  KindWomen kindWomen;

    public ProxyWangPo() {
        kindWomen = new PanJinLian();
    }

    public ProxyWangPo(KindWomen kindWomen) {
        this.kindWomen = kindWomen;
    }

    @Override
    public void makeEyesWithMan() {
        kindWomen.makeEyesWithMan();
    }

    @Override
    public void happyWithMan() {
        kindWomen.happyWithMan();
    }
}
